public abstract class SensorBxArea extends BxArea
| Modifier and Type | Class and Description |
|---|---|
static class |
SensorBxArea.AlarmType |
static class |
SensorBxArea.PolarType
极性类型
|
| Modifier and Type | Field and Description |
|---|---|
static byte |
NUMBER_NOLIMIT |
| Constructor and Description |
|---|
SensorBxArea(int x,
int y,
int width,
int height,
Bx6GScreenProfile screenProfile)
建构子。
|
SensorBxArea(onbon.bx06.message.area.SensorArea area,
Bx6GScreenProfile screenProfile)
建构子。
|
| Modifier and Type | Method and Description |
|---|---|
void |
addThreshold(SensorBxArea.AlarmType alarmType,
int value,
java.awt.Color normal,
java.awt.Color alarm) |
void |
clearThresholds() |
byte[] |
generate(ProgramDataBxFile dataFile)
产生区域的位元组资讯。
|
int |
getCorrection()
取得修正值。
|
SensorBxArea.PolarType |
getCorrectionPolar()
取得修正极性。
|
byte |
getNumberFloat() |
byte |
getNumberInt() |
java.lang.String |
getStaticText()
取得静态文字。
|
int |
getTransparency()
取得透明度。
|
boolean |
isBackgroundFlag() |
boolean |
isFractionalPart()
取得湿度是否显示小数位。
|
boolean |
isSensorUnitFlag() |
void |
maskByBackground()
显示被背景遮罩的部分。
|
void |
overlayWithBackground()
与背景重叠显示。
|
void |
setBackgroundFlag(boolean backgroundFlag) |
void |
setCorrection(int correction)
设定修正值。
|
void |
setCorrectionPolar(SensorBxArea.PolarType correctionPolar)
设定修正极性。
|
void |
setFractionalPart(boolean fractionalPart)
设定湿度是否显示小数位。
|
void |
setNumberFloat(byte numberFloat) |
void |
setNumberInt(byte numberInt) |
void |
setSensorUnitFlag(boolean sensorUnitFlag) |
void |
setStaticText(java.lang.String staticText)
设定静态文字。
|
void |
setTransparency(int transparency)
设定透明度。
1. |
java.lang.String |
toString() |
getFont, getFrameMoveStep, getFrameSpeed, getFrameStyle, getHeight, getScreenProfile, getWidth, getX, getY, isFrameShow, loadFrameImage, preview, setFont, setFrameMoveStep, setFrameShow, setFrameSpeed, setFrameStyle, validatepublic static final byte NUMBER_NOLIMIT
public SensorBxArea(int x,
int y,
int width,
int height,
Bx6GScreenProfile screenProfile)
x - X 座标。y - Y 座标。width - 区域宽度。height - 区域高度。screenProfile - 屏幕规格。public SensorBxArea(onbon.bx06.message.area.SensorArea area,
Bx6GScreenProfile screenProfile)
area - 区域screenProfile - 屏幕规格。public void addThreshold(SensorBxArea.AlarmType alarmType, int value, java.awt.Color normal, java.awt.Color alarm)
alarmType - value - normal - alarm - public void clearThresholds()
public byte[] generate(ProgramDataBxFile dataFile) throws Bx6GException
BxAreagenerate in class BxAreadataFile - 资料。Bx6GException - 产生区域位元组资讯时发生错误。public int getCorrection()
public SensorBxArea.PolarType getCorrectionPolar()
public byte getNumberFloat()
public byte getNumberInt()
public java.lang.String getStaticText()
public int getTransparency()
public boolean isBackgroundFlag()
public boolean isFractionalPart()
public boolean isSensorUnitFlag()
public void maskByBackground()
public void overlayWithBackground()
public void setBackgroundFlag(boolean backgroundFlag)
public void setCorrection(int correction)
correction - 修正值。public void setCorrectionPolar(SensorBxArea.PolarType correctionPolar)
correctionPolar - 修正极性。public void setFractionalPart(boolean fractionalPart)
fractionalPart - 是否显示小数位。public void setNumberFloat(byte numberFloat)
public void setNumberInt(byte numberInt)
public void setSensorUnitFlag(boolean sensorUnitFlag)
public void setStaticText(java.lang.String staticText)
staticText - 静态文字。public void setTransparency(int transparency)
transparency - 透明度。